/**
 * Created by xxd on 2017-04-07.
 */

function exportTable2Excel(contentId) {
    alert(contentId)
    //**************
    //*  增加按钮：
    // *  <button type="button" class="btn-blue" onclick="javascript:exportTable2Excel('#oqcLrrReportTableId')"     data-icon="file-excel-o" >导出1</button>&nbsp;
    //*
    // ***********/
    $.CurrentNavtab.find("#tbform").remove();
    var tablehtml = $.CurrentNavtab.find(contentId).html();
    console.log(tablehtml)
    var domString = "<form action='../exportExcel/exportTable2Excel' method=post target=_blank id=tbform >" +
        "<input type=hidden id='tbcontent' name='tbcontent' vale='' />" +
        "</form>";
    console.log(domString)

    $.CurrentNavtab.append(domString);

    $.CurrentNavtab.find("#tbform").val(tablehtml);

    $.CurrentNavtab.find("#tbform").submit();
}